package com.system.goodsserver.service;

import com.system.goodsserver.bean.*;
import com.system.goodsserver.pojo.GoodsBrand;
import com.system.goodsserver.pojo.GoodsCover;
import com.system.goodsserver.pojo.GoodsDetailimg;
import com.system.goodsserver.pojo.GoodsType;

import java.util.Date;
import java.util.List;

/**
 * @author Xuheng Zhou
 * @date 2020/7/7 10:41
 * @desc
 */
public interface GoodsService {
    List<ResultGoodsSelectBean> selcetGoods(SelectGoodsParamBean selectGoodsParamBean);

    Integer selcetGoodsCount(SelectGoodsParamBean selectGoodsParamBean);

    List<GoodsType> selcetGoodsType();

    List<GoodsBrand> selcetGoodsBrand();

    ResultGoodsDetailSelectBean selcetGoodsOneById(Integer goodsId);


    boolean updateSpecificationsIsPriceBySid(Integer specificationsId, Integer isCoupon, Integer isPrice, Double price, Date endtime);

    List<ResultSpecificationByGoodsId> SelectSpecificationsByGid(Integer goodsId);


    boolean addGoods(addGoodsBean addGoodsBean);

    boolean deleteGoods(Integer goodsId);


    boolean updateGoods(UpdateGoodsBean updateGoodsBean);

    boolean updateGoodsAddSpecificatios(AddSpecifications addSpecifications);

    boolean updateGoodsDeleteSpecificatios( Integer specificationsId);

    boolean UpdateCover(GoodsCover goodsCover);

    boolean UpdateDetailImg(GoodsDetailimg goodsDetailimg);

    boolean updateGoodsSalesNumber(Integer goodsId, Integer salesGoodsNumber);
}
